export const sum = (...arr: number[]): number => {
  return arr.reduce((p, n) => {
    return p + n;
  }, 0);
};

export const removeRepeat = (params: number[]): number[] =>
  Array.from(new Set(params));

console.log(sum(1, 2, 3, 4, 5, 6));
console.log(removeRepeat([1, 2, 3, 4, 5, 6, 1, 4, 6]));
